package com.munoor.dalai.server.model;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the FILTERS database table.
 * 
 */
@Entity
@Table(name="FILTERS")
@NamedQueries({
	@NamedQuery(name = "Filters.findByFilterId", query = "SELECT f FROM Filter f WHERE f.filterId = :filterId"),
	@NamedQuery(name = "Filters.findByUserId", query = "SELECT f FROM Filter f WHERE f.userId = :userId"),
	@NamedQuery(name = "Filters.findActiveByUserId", query = "SELECT f FROM Filter f WHERE f.userId = :userId AND f.active > 0"),
	@NamedQuery(name = "Filters.getFilterCountByUserId", query = "SELECT COUNT(f) FROM Filter f WHERE f.userId = :userId")})
public class Filter implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="FILTER_ID")
	private Long filterId;

	private short active;

	@Column(name="CATEGORY_ID")
	private long categoryId;

	@Column(name="FILTER_NAME")
	private String filterName;

	@Column(name="LEVEL_ID")
	private short levelId;

	@Column(name="LOCATION_ID")
	private String locationId;

	@Column(name="SALARY_MAX")
	private int salaryMax;

	@Column(name="SALARY_MIN")
	private int salaryMin;

	@Column(name="USER_ID")
	private long userId;

    public Filter() {
    }

	public long getFilterId() {
		return this.filterId;
	}

	public void setFilterId(long filterId) {
		this.filterId = filterId;
	}

	public short getActive() {
		return this.active;
	}

	public void setActive(short active) {
		this.active = active;
	}

	public long getCategoryId() {
		return this.categoryId;
	}

	public void setCategoryId(long categoryId) {
		this.categoryId = categoryId;
	}

	public String getFilterName() {
		return this.filterName;
	}

	public void setFilterName(String filterName) {
		this.filterName = filterName;
	}

	public short getLevelId() {
		return this.levelId;
	}

	public void setLevelId(short levelId) {
		this.levelId = levelId;
	}

	public int getSalaryMax() {
		return this.salaryMax;
	}

	public void setSalaryMax(int salaryMax) {
		this.salaryMax = salaryMax;
	}

	public int getSalaryMin() {
		return this.salaryMin;
	}

	public void setSalaryMin(int salaryMin) {
		this.salaryMin = salaryMin;
	}

	public long getUserId() {
		return this.userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}

	public String getLocationId() {
		return locationId;
	}

	public void setLocationId(String locationId) {
		this.locationId = locationId;
	}

}